﻿
<%@page import="cn.org.timespace.easyframe.util.EfResourceContext"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="commons/taglibs.jsp" %>

<head>
	<title>广州天绎物联信息平台</title>
	<script language="JavaScript" src="${ctx}/main/coommonjs/common.js" type="text/javascript"></script>
	
	<link rel="Shortcut Icon" href="${ctx}/images/xf.ico" />
	<link rel="Bookmark" href="${ctx}/images/xf.ico" />
</head>

<body>

<s:form action="/efPreLogonAction.ts" method="post">
	<s:hidden name="s" value="welcome"></s:hidden>
</s:form>

<script>

	var logonType = "<%=EfResourceContext.getInstance().getParamValue("logon.model") %>"; //popupOpen general popupModal
	
	if(logonType == "general")
	{
		document.forms[0].submit();
	}
	else if(logonType == "popupOpen")
	{
		var h = window.screen.height;
		var w = window.screen.width;
		var t = 0;
		var l = 0;
		
		//window.open('${ctx}/efPreLogonAction.ts?s=welcome','window','height='+h+',width='+w+',top='+t+',left='+l+',resizable=no,location=no,status=no');
		window.location.href='${ctx}/efPreLogonAction.ts?s=welcome';
		//window.close();
	}
	else if(logonType == "popupModal")
	{
		var h = window.screen.height;
		var w = window.screen.width;
		//window.showModalDialog("${ctx}/efPreLogonAction.ts?s=welcome","window","dialogWidth="+w+"px;dialogHeight="+h+"px;status=no");
		window.location.href='${ctx}/efPreLogonAction.ts?s=welcome';
		//window.close();
	}

</script>

</body>

</html>